let count = 0
let startTime=''
let endTime=''
export default {
  state: {
    topicId:'',
    name:'',
    startTime:'',
    endTime:''
  },
  mutations: {
    updateId:(state, payload)=>{
      state.topicId = payload._id;
      state.name = payload.name;
      state.startTime = payload.timestart;
      state.endTime = payload.timeend;
      //存储 防止刷新后数据消失
      localStorage.topicId = payload._id
      localStorage.topicName = payload.name;
      localStorage.topicsTime = payload.timestart;
      localStorage.topiceTime = payload.timeend;
    }
  },
}
